﻿using System;
using System.Net;
using System.Runtime.Serialization;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;

namespace bdnt_pets_system_Entity
{
    [DataContract]
    public class Tbl_Part : INotifyPropertyChanged
    {
        Int32 id;
        [DataMember]
        public Int32 Id
        {
            get { return id; }
            set { id = value; }
        }

        string partNo;
        [DataMember]

        public string PartNo
        {
            get { return partNo; }
            set
            {
                partNo = value;

            }
        }
        string partName;
        [DataMember]
        public string PartName
        {
            get { return partName; }
            set
            {
                partName = value;
            }
        }

        string en_partName;
        [DataMember]
        public string en_PartName
        {
            get { return en_partName; }
            set
            {
                en_partName = value;
            }
        }

        string partColor;
        [DataMember]
        public string PartColor
        {
            get { return partColor; }
            set { partColor = value; }
        }

        string remark;
        [DataMember]
        public string Remark
        {
            get { return remark; }
            set { remark = value; }
        }

        bool isImportant;
        [DataMember]
        public bool IsImportant
        {
            get { return isImportant; }
            set { isImportant = value; }
        }

        int isImportantSelect;
        [DataMember]
        public int IsImportantSelect
        {
            get { return isImportantSelect; }
            set { isImportantSelect = value; }
        }

        string sationIds;
        [DataMember]
        public string StationIds
        {
            get { return sationIds; }
            set { sationIds = value; }
        }

        string materialCode;
        [DataMember]
        public string MaterialCode
        {
            get { return materialCode; }
            set { materialCode = value; }
        }

        string funcitionGroup;
        [DataMember]
        public string FuncitionGroup
        {
            get { return funcitionGroup; }
            set { funcitionGroup = value; }
        }

        float weight;
        [DataMember]
        public float Weight
        {
            get { return weight; }
            set { weight = value; }
        }


        string supplier;
        [DataMember]
        public string Supplier
        {
            get { return supplier; }
            set { supplier = value; }
        }

        public event PropertyChangedEventHandler PropertyChanged;
        private void OnPropertyChanged(string PropName)
        {
            if (PropertyChanged != null)
            {
                this.PropertyChanged(this, new PropertyChangedEventArgs(PropName));
            }
        }
    }
}
